package blog.ideablog.service;


import blog.ideablog.model.dto.MessageDTO;
import blog.ideablog.model.entity.MessagePO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.Instant;

@Service
public class MessageService {
//    @Autowired
//    private MessageMapper messageMapper;
//
//    public void insMessage(MessageDTO messageDTO){
//        MessagePO messagePO = new MessagePO();
//        messagePO.setCreator(messageDTO.getCreatorId());
//        messagePO.setContent(messageDTO.getContent());
//        messagePO.setGmtCreate(Instant.now().toEpochMilli());
//        messageMapper.save(messagePO);
//    }
}
